//
//  UINavigationController+MLXGestureRecognizer.m
//  MLX
//
//  Created by SY on 2018/11/7.
//  Copyright © 2018年 SY. All rights reserved.
//

#import "UINavigationController+MLXGestureRecognizer.h"

@implementation UINavigationController (MLXGestureRecognizer)
- (UIScreenEdgePanGestureRecognizer *)screenEdgePanGestureRecognizer{
    UIScreenEdgePanGestureRecognizer *screenEdgePanGestureRecognizer = nil;
    if (self.view.gestureRecognizers.count > 0){
        for (UIGestureRecognizer *recognizer in self.view.gestureRecognizers){
            if ([recognizer isKindOfClass:[UIScreenEdgePanGestureRecognizer class]]){
                screenEdgePanGestureRecognizer = (UIScreenEdgePanGestureRecognizer *)recognizer;
                break;
            }
        }
    }
    return screenEdgePanGestureRecognizer;
}


@end
